
package cn.iocoder.yudao.module.api.product.sku.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

/**
 * 价格响应 DTO
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/02/18
 */
@Tag(name = "价格响应 DTO")
@Data
public class AdminPriceRespDTO extends PriceRespDTO {

    @Schema(description = "成本价，单位使用：分", requiredMode = Schema.RequiredMode.REQUIRED, example = "0")
    @JsonIgnore(value = false)
    private Integer costPrice;

    @Override
    @JsonIgnore(value = false)
    public int getCostPrice() {
        return super.getCostPrice();
    }

    @Schema(description = "用户等级尊享价格，单位使用：元", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @JsonIgnore
    private Integer memberLevelPrice;

    @Override
    @JsonIgnore
    public int getMemberLevelPrice() {
        return super.getMemberLevelPrice();
    }

}
